module.exports = {
    createUserRules: {
        email: [
            { type: 'string', required: true, message: '请输入邮箱' },
        ],
        password: { type: 'string', required: true, message: '请输入密码' },
        verificationCode: { type: 'string', required: true, message: '验证码不能为空' },
        uuid: { type: 'string', required: true, message: 'uuid不能为空' },
    },
    retrieveUserPasswordRules: {
        email: [
            { type: 'string', required: true, message: '请输入邮箱' },
        ],
        newPassword: { type: 'string', required: true, message: '请输入新密码' },
        verificationCode: { type: 'string', required: true, message: '验证码不能为空' },
        uuid: { type: 'string', required: true, message: 'uuid不能为空' },
    },
    updateUserRules: {
        id: { required: true, message: '请输入用户id' },
        password: { type: 'string', required: false, message: '请输入密码' },
    },
    updateMyPasswordRules: {
        oldPassword: { type: 'string', required: true, message: '请输入用户名' },
        newPassword: { type: 'string', required: true, message: '请输入用户名' },
    },
    deleteUserRules: {
        id: { required: true, message: '请输入用户id' },
    },
    getUserByIdRules: {
        id: { required: true, message: '请输入用户id' },
    },
    loginUserRules: {
        email: [
            { type: 'string', required: true, message: '请输入邮箱' },
        ],
        password: { type: 'string', required: true, message: '请输入密码' },
    },
    getVerificationCodeRules: {
        email: [ { type: 'string', required: true, message: '请输入string类型邮箱' } ],
    },
    updateUserVideoPageRules: {
        page: { type: 'number', required: true, message: '请输入number类型页数' }
    }
}